x86emul: honor guest CR4.OSFXSR and CR4.OSXSAVE
authorJan Beulich <jbeulich@suse.com>
Wed, 5 Oct 2016 12:18:42 +0000 (14:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 5 Oct 2016 12:18:42 +0000 (14:18 +0200)
commitcab9638a42457d2ab360c60ec419cdef4c75ca54
tree83e7744bf9aa17e820b048860c139e819b6a42a7
parentb7dd797c7fe4cd849018f78f6c7b9eb3d33b89d8
x86emul: honor guest CR4.OSFXSR and CR4.OSXSAVE

These checks belong into the emulator instead of hvmemul_get_fpu().

The CR0.PE/EFLAGS.VM ones can actually just be ASSERT()ed, as decoding
should make it impossible to get into get_fpu() with them in the wrong
state.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/tests/x86_emulator/test_x86_emulator.c
xen/arch/x86/hvm/emulate.c
xen/arch/x86/x86_emulate/x86_emulate.c